package com.hckjsec.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.hckjsec.system.mapper.SysVehicleAdministrationMapper;
import com.hckjsec.system.domain.SysVehicleAdministration;
import com.hckjsec.system.service.ISysVehicleAdministrationService;

/**
 * 车辆管理Service业务层处理
 * 
 * @author cyt
 * @date 2021-10-12
 */
@Service
public class SysVehicleAdministrationServiceImpl implements ISysVehicleAdministrationService 
{
    @Autowired
    private SysVehicleAdministrationMapper sysVehicleAdministrationMapper;

    /**
     * 查询车辆管理
     * 
     * @param vehicleId 车辆管理ID
     * @return 车辆管理
     */
    @Override
    public SysVehicleAdministration selectSysVehicleAdministrationById(Long vehicleId)
    {
        return sysVehicleAdministrationMapper.selectSysVehicleAdministrationById(vehicleId);
    }

    /**
     * 查询车辆管理列表
     * 
     * @param sysVehicleAdministration 车辆管理
     * @return 车辆管理
     */
    @Override
    public List<SysVehicleAdministration> selectSysVehicleAdministrationList(SysVehicleAdministration sysVehicleAdministration)
    {
        return sysVehicleAdministrationMapper.selectSysVehicleAdministrationList(sysVehicleAdministration);
    }

    /**
     * 新增车辆管理
     * 
     * @param sysVehicleAdministration 车辆管理
     * @return 结果
     */
    @Override
    public int insertSysVehicleAdministration(SysVehicleAdministration sysVehicleAdministration)
    {
        return sysVehicleAdministrationMapper.insertSysVehicleAdministration(sysVehicleAdministration);
    }

    /**
     * 修改车辆管理
     * 
     * @param sysVehicleAdministration 车辆管理
     * @return 结果
     */
    @Override
    public int updateSysVehicleAdministration(SysVehicleAdministration sysVehicleAdministration)
    {
        return sysVehicleAdministrationMapper.updateSysVehicleAdministration(sysVehicleAdministration);
    }

    /**
     * 批量删除车辆管理
     * 
     * @param vehicleIds 需要删除的车辆管理ID
     * @return 结果
     */
    @Override
    public int deleteSysVehicleAdministrationByIds(Long[] vehicleIds)
    {
        return sysVehicleAdministrationMapper.deleteSysVehicleAdministrationByIds(vehicleIds);
    }

    /**
     * 删除车辆管理信息
     * 
     * @param vehicleId 车辆管理ID
     * @return 结果
     */
    @Override
    public int deleteSysVehicleAdministrationById(Long vehicleId)
    {
        return sysVehicleAdministrationMapper.deleteSysVehicleAdministrationById(vehicleId);
    }
}
